<h1>Lista de Marcas</h1>
<table>
	<thead>
		<tr>
			<th>Nome</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
		<% unless @labels.blank?%>
			<% for label in @labels %> 
				<tr>
					<td><%= label.name %></td>
					<td>
						<%= link_to 'Editar', :controller => 'admin/labels', :action => 'edit', :id => label.id %> |
						<%= link_to 'Deletar', :controller => 'admin/labels', :action => 'delete', :id => label.id %>
					</td>
				</tr>
			<% end %>
		<% else %>
			<tr>
				<td colspan="4">Não há nenhuma marca</td>
			</tr>
		<% end %>
	</tbody>
</table>

<br/>
<br/>

<%= link_to 'Nova Marca', :action => 'new' %>